Skip to content

test: harden the two flaky CI tests (Chrome cold start, calendar import) - #90

Merged
Madraka merged 1 commit into
mainfrom
test/flaky-chrome-calendar
Oct 22, 2026
Merged

Madraka merged 1 commit into
mainfrom
test/flaky-chrome-calendar

Conversation

@Madraka

@Madraka Madraka commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Fixes the two tests that sometimes failed CI and passed when re-run.

1. render-chrome: "Chrome did not start" (main, run 39812926089)

  • chromeRenderer: each launch waits 20 s (was 30 s). A Chrome that hangs or crashes on a cold start is killed and launched once more with a new profile.
  • The first test's timeout is 120 s, so both attempts plus the render fit.
  • New test, no Chrome needed: a fake executable that exits at once is launched exactly twice, each time with a different profile, and the error then surfaces.
  • The process exit listener is removed when Chrome exits, so MaxListenersExceededWarning is gone.

2. AnalyticsRangePicker "Test timed out in 5000ms"

  • Locally it takes 281 ms. The first test to open the calendar pays the lazy import's cold cost, which went past 5 s on a CI runner shared with the heavy suites.
  • packages/ui was the only package on Vitest's 5 s default; it now uses Studio's 20 s.

Checks: render-chrome 4/4 (twice), packages/ui 201/201, Biome clean.

🤖 Generated with Claude Code

render-chrome: a Chrome that did not print its DevTools line within 30 s
failed the render (main, run 39812926089). Each launch now waits 20 s,
and a stuck or crashed one is killed and launched once more with a new
profile; the first test allows both attempts (120 s). A new test uses a
fake executable to check the second launch. The process "exit" listener
is removed when Chrome exits (MaxListenersExceededWarning).

ui: the first test to open the calendar pays the lazy import's cold
cost and went past Vitest's 5 s default on a loaded runner; the package
now uses Studio's 20 s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Madraka <[email protected]>
@Madraka
Madraka merged commit 1ed0ea4 into main Oct 22, 2026
4 checks passed
@Madraka
Madraka deleted the test/flaky-chrome-calendar branch October 22, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant